import unittest
from Common.Common import tool
from Case.Case import TestCase

if __name__ == '__main__':
    tool_obj=tool()

    tool_obj.log()

    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestCase))
    # 调用生成报告的方法
    tool_obj.baogao(suite)

    attachments = [r'C:\Users\Kaka\PycharmProjects\PythonProject30888\Case\Case.py', 'a3mall_search.log']

    tool_obj.email(attachments)